package com.wangyg.juc.Semaphore.signal;

/**
 * Created by wangyg6 on 2018/7/19.
 */
public class Test {
	public static void main(String[] args) {
		for (int i = 0; i < 5; i++) {
			int finalI = i;
			new Thread(new Runnable() {
				@Override
				public void run() {
					//					while (true) {
					try {
						ParkingTest.park("this is msg:" + finalI);
					} catch (InterruptedException e) {
						e.printStackTrace();
					}
				}
				//				}
			}, "ThreadName" + i).start();
		}
	}

}
